﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhaoxiLearningWpf.Common;

namespace ZhaoxiLearningWpf.Model
{
    public class LoginModel:NotifyBase
    {
        private string _userName;

        public string UserName {
            get { return _userName; }
            set { _userName = value;
                this.DoNotify();
                this.CanExevChanged?.Invoke();
            }
        }


        private string _validation;

        public string Validation {
            get { return _validation; }
            set { _validation = value;
                this.DoNotify();
                this.CanExevChanged?.Invoke();
            }
        }


        public string Password {
            get {
                return _password;
            }
            set {
                _password = value;
                this.DoNotify();
                this.CanExevChanged?.Invoke();
            }
        }
        private string _password;


        public string ErrorMsg {
            get {
                return errorMsg;
            }
            set {
                errorMsg = value;
                this.DoNotify();
            }
        }
        private string errorMsg;

    }
}
